x86: put_superpage() must also work for !opt_allow_superpage
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Jun 2010 12:20:43 +0000 (13:20 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Jun 2010 12:20:43 +0000 (13:20 +0100)
commit622c5d9ee4f9443a9632dc014f1fda27303aa77e
tree793b65bf6b24dedb5a14de6ba68d0f8cf9698e78
parentc2c4e65d960453d6d764c837015e817c06c8dcea
x86: put_superpage() must also work for !opt_allow_superpage

This is because the P2M table, when placed at a kernel specified
location, gets populated with large pages, which the domain must have
a way to unmap/recycle.

Additionally when allowing Dom0 to use superpages, they ought to be
tracked accordingly in the superpage frame table.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/domain_build.c
xen/arch/x86/mm.c
xen/include/asm-x86/mm.h